package com.syyc.service.impl;

import com.syyc.dao.MysqlDao;
import com.syyc.pojo.Content;
import com.syyc.service.MysqlService;
import com.syyc.utils.MyBatisUtils;

import java.util.List;

/**
 * @author huimin
 * @date 2021/10/30
 * @apiNote
 */
public class MysqlServiceImpl implements MysqlService {

    public MysqlDao mysqlDao;

    public MysqlServiceImpl(){
        this.mysqlDao = MyBatisUtils.getMapper(MysqlDao.class);
    }

    @Override
    public int insertContentList(List<Content> contentList) {
        return mysqlDao.insert(contentList);
    }

    @Override
    public List<Content> selectAllVideoList() {
        return mysqlDao.select();
    }

}
